﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///InSearchRun 的摘要说明
/// </summary>
public class InSearchRun:ISearchRunType
{
	public InSearchRun()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    #region ISearchRunType 成员

    public string GetSearchString(ConfigColumns cCol, string Value)
    {
        string v=Value.Trim(",".ToCharArray());
        while (v.IndexOf(",,") > -1)
        {
            v.Replace(",,", ",");
        }
        if (string.IsNullOrEmpty(v.Trim()))
        {
            return string.Empty;
        }
        return cCol.ColumnName + " in (" + v + ")";
    }

    #endregion
}
